/*!
 * \file image.h
 * \brief declaraion des fonctions associees a une image
 * \author  Lucas ROYER, Artur BRAGA
 * \date : 15/12/2010
 */

#ifndef IMAGE_H
#define IMAGE_H

#include <stdio.h>
#include <stdlib.h>
#include "pixel.h"

typedef enum {FAUX=0,VRAI=1}Booleen;

struct Image{
      int largeur;
      int hauteur;
      struct Pixel * data;
};
struct Vecteur{
      int x;
      int y;
};

void setPixelxy(struct Image *image, int x, int y , struct Pixel p);
struct Pixel getPixelxy(struct Image *image, int x, int y);
struct Image * allouerImage(int l, int h);
struct Image * concatener(struct Image *im1,struct Image *im2,struct Vecteur *translation);

#endif

